import {useReducer} from 'react';
// 强制更新
const ForceUpdate = () => {
    const [_, forceUpdate] = useReducer(x => x + 1, 0);

    return {forceUpdate};
};

export default ForceUpdate;